<?php $this->beginWidget('application.widgets.report.makeReport'); ?>
<div class="report">
    <div>
        <table width="100%" cellpadding="3px" style="text-align:center; text-decoration: underline;">
            <tr>
                <td>
                    <h3>Subsidiary export certificate</h3>
                </td>
            </tr>
        </table>
    </div>
        <table width="100%">
            <tr>
                <th width="100px">
                    <b>Our Marking / Ref:</b>
                </th>
                <td>
                    <?php echo $data->cargo->marking; ?>
                </td>
            </tr>
        </table>
    <div>
        <table border="1">
            <tr>
                <td>
                    <table width="100%">
                        <tr>
                            <td colspan="2"><b>Exporter:</b></td>
                        </tr>
                        <tr>
                            <td width="20px" height="50px">
                                &nbsp;
                            </td>
                            <td>
                                <?php echo CHtml::label(nl2br($data->exporter), 'exporter'); ?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table border="1">
            <tr>
                <td>
                    <table>
                        <tr>
                            <td colspan="2"><b>Consignee:</b></td>
                        </tr>
                        <tr>
                            <td width="20px" height="50px">
                                &nbsp;
                            </td>
                            <td><?php echo CHtml::label(nl2br($data->consignee), 'consignee'); ?></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>

    <div>
    <table border="1">
        <tr>
            <td>
                <table width="100%" cellpadding="2" cellspacing="1">
                    <tr>
                        <td><b>Outward Permit No.</b></td>
                        <td><?php echo CHtml::label($data->export->out_permit, 'permit'); ?></td>
                        <td><b>ETD</b></td>
                        <td><?php echo CHtml::label(Yii::app()->format->formatDate($data->export->etd), 'etd'); ?></td>
                    </tr>
                    <tr>
                        <td><b>AWB No./B/L No.</b></td>
                        <td><?php echo CHtml::label($data->export->awb, 'awb'); ?></td>
                        <td><b>Mode of Transport</b></td>
                        <td><?php echo CHtml::label($data->export->mode, 'mode'); ?></td>
                    </tr>
                    <tr>
                        <td><b>Vessel / Flt</b></td>
                        <td><?php echo CHtml::label($data->export->vessel, 'vessel'); ?></td>
                        <td><b>Total Value</b></td>
                        <td>S$ <?php echo CHtml::label(Yii::app()->format->formatNumber($data->cargo->amt), 'amt'); ?></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    <div>
        <table border="1">
            <tr>
                <td>
                    <table width="100%">
                        <tr>
                            <td colspan="2">
                                <b>Exporter Ref:</b>
                            </td>
                        </tr>
                        <tr>
                            <td width="20px" height="50px">&nbsp;</td>
                            <td>
                                <?php echo CHtml::label($data->exporter_ref, 'exporter_ref', array('style' => 'margin:0px 0px 20px 20px;')); ?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <table border="1">
            <tr>
                <td>
                    <table>
                        <tr>
                            <td colspan="2">
                                <b>Remark</b>
                            </td>
                        </tr>
                        <tr>
                            <td width="20px" height="70">&nbsp;</td>
                            <td>
                                <?php echo CHtml::label($data->remark, 'remark', array('style' => 'margin:0px 0px 20px 20px;')); ?>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

    </div>
<p>
    *This is a computer generated document.
</p>
</div>
<?php $this->endWidget(); ?>
